#指定基础镜像，在其上进行定制
FROM adoptopenjdk/openjdk8
#FROM adoptopenjdk/openjdk11

#设置时区
ENV TZ=Asia/Shanghai
RUN echo $TZ > /etc/timezone

#指定工作目录
WORKDIR /home/data

COPY target/localtime /etc/
COPY target/localtime /usr/share/zoneinfo/Asia/Shanghai
#拷贝服务
COPY target/ruoyi-admin.jar /home/data/ruoyi-admin.jar

EXPOSE 9185

ENTRYPOINT ["java", "-jar", "/home/data/ruoyi-admin.jar"]
#CMD ["java", "-jar", "/home/data/ruoyi-admin.jar"]
